package com.tm.chargecar.controller;

import com.tm.chargecar.entity.ReDaCenterEntity;
import com.tm.chargecar.result.Result;
import com.tm.chargecar.service.ReDaCenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("redacenter")
public class ReDaCenterController {
    @Autowired
    private ReDaCenterService reDaCenterService;

    @GetMapping("queryReDaCenter")
    public Result queryReDaCenter(ReDaCenterEntity reDaCenterEntity){
        List<ReDaCenterEntity> list = reDaCenterService.queryReDaCenter(reDaCenterEntity);
        return  Result.SUCCESS(list);
    }
}
